//
//  LXSelectDevVC.m
//  bgms_d
//
//  Created by lachesis-zhu on 2019/1/23.
//  Copyright © 2019 lachesis-zhu. All rights reserved.
//

#import "LXSelectDevVC.h"
#import "LXLoginVC.h"

@interface LXSelectDevVC ()

@end

@implementation LXSelectDevVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.nextBtn.layer.borderColor = kAppDeepLineColor.CGColor;
    self.nextBtn.layer.borderWidth = 1;
    self.nextBtn.layer.cornerRadius = 5;
    self.nextBtn.layer.masksToBounds = YES;
    
    self.showWarnLabel.numberOfLines = 3;
    self.showWarnLabel.lineBreakMode = NSLineBreakByTruncatingTail;
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.navigationController.navigationBarHidden = YES;
}

- (IBAction)selectNext:(id)sender {
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"App-Prefs:root=Bluetooth"]];
    
    LXLoginVC *vc = [[LXLoginVC alloc] initWithNibName:NSStringFromClass([LXLoginVC class]) bundle:nil];
    LXThemeColorNavigationController *themeNav = [[LXThemeColorNavigationController alloc] initWithRootViewController:vc];
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.3f * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        [self presentViewController:themeNav animated:YES completion:nil];
    });
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
